from src import office
from src import latex
from src import image

if __name__ == '__main__':
    # # pdf
    # filepath = '/Users/jiangjingjing/Desktop/硕士毕业论文资料/1-开题/23S003045-硕士学位论文开题报告评议表.pdf'
    # not_pages = [2]
    # office.pdf_partition(filepath, not_pages)

    # # pdf merge
    # office.merge_pdfs('/Users/jiangjingjing/Downloads/作业1-题解.pdf', '/Users/jiangjingjing/Downloads/作业1-程序.pdf',
    #                   '/Users/jiangjingjing/Downloads/作业1.pdf')

    # 黑图片转换成白图片
    img_path_origin = '/Users/jiangjingjing/Downloads/图片1.png'
    image.black2white(img_path_origin)

    # # 黑图片转换成白图片
    # img_path_origin = '/Users/jiangjingjing/Desktop/tmp'
    # image.black2white(img_path_origin)

    # # 去除掉没有用到的参考文献
    # latex_path = ['/Users/didi/Downloads/AAAI_bridge/text', '/Users/didi/Downloads/AAAI_bridge/LaTeX/sup.tex']
    # bib_path = '/Users/didi/Downloads/AAAI_bridge/LaTeX/aaai25.bib'
    # output_bib_path = '/Users/didi/Downloads/aaai25.bib'
    # latex.remove_unused_reference(latex_path, bib_path, output_bib_path)
